.sendPromise(method[, params])
Sends a message to native client and returns the Promise object with response data
Parameters
method required The Boxo JS SDK method
params optional Message data object
Example
.send(method[, params])
Sends a message to native client
Parameters
methodrequired The Boxo JS SDK methodparamsoptional Message data object
.subscribe(fn)
Subscribes a function to events listening
Parameters
fn required Function to be subscribed to events
Example
.unsubscribe(fn)
Unsubscribes a function from events listening
Parameters
- ```fn“ required Event subscribed function
.supports(method)
Checks if an event is available on the current device
Parameters
methodrequired The Boxo JS SDK method
.isWebView()
Returns true if Boxo JS SDK is running in mobile app, or false if not